package com.schoolET.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "WechatInfoVO对象", description = "个人信息查询")
public class WechatInfoVO {

    @ApiModelProperty("openId")
    private String openId;

    @ApiModelProperty("页数")
    private Integer pageNum;

    @ApiModelProperty("每页条数")
    private Integer pageSize;

    public Integer getPageNum() {
        return (this.pageNum == null || this.pageNum < 1) ? this.pageNum = 1 : this.pageNum;
    }

    public Integer getPageSize() {
        return (this.pageSize == null || this.pageSize < 1) ? 5 : this.pageSize;
    }

}
